package com.lagou.edu;

import com.lagou.edu.factory.BeanFactory;
import com.lagou.edu.factory.impl.DefaultFactory;
import com.lagou.edu.service.ITransferService;
import org.dom4j.DocumentException;

import java.math.BigDecimal;
import java.sql.SQLException;

/**
 * @ClassName: MiniTest
 * @Auther: Jerry
 * @Date: 2020/7/8 21:40
 * @Desctiption: TODO
 * @Version: 1.0
 */
public class MiniTest {
    public static void main(String[] args) throws DocumentException, IllegalAccessException,
            NoSuchFieldException, InstantiationException, SQLException {
        BeanFactory beanFactory = new DefaultFactory("beans.xml");
        ITransferService transferService = (ITransferService) beanFactory.getBean("transferService");
        System.out.println(transferService);
//        transferService.transfer("6029621011000", "6029621011001", new BigDecimal("100"));
    }
}
